package com.wlh.animation;

import android.content.res.Resources;
import android.util.TypedValue;

/**
 * Created by weilh on 2018/10/15
 */
public class CommonUtils {

    public static float dp2px(int dp) {
        return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, Resources.getSystem().getDisplayMetrics());
    }
}
